{config_load file="global.conf"}
{config_load file="_form_profile.conf" section="`$lang`"}

{config_load file="brokers.conf" section="`$lang`"}

{*=======================================================================*}
{*params*}

{assign var="systems_per_row" value=3}

{*/params*}
{*=======================================================================*}

{php}
$this->Assign('isPOST',count($_POST));
$this->Assign('isPOSTPass',$_POST['data_password']);
$this->Assign('isPOSTsms',$_POST['test_sms']);
$this->Assign('isPOSTredirect',$_POST['flag_redirect']==1);
$this->Assign('isPOSTMMRecommend',$_POST['data_mmRecommend']);

//var_dump($_POST);

{/php}

 {*if $isPOST && !$isPOSTPass && !$isPOSTsms*}
 {if $isPOSTredirect}
 <script type="text/javascript">
 	window.location="/{$lang}/dashboard.html";
 </script>
 {/if}
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.lang-enUS.js"></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.config.js" ></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.core.js" ></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.validators.js" ></script>
<script type="text/javascript" language="JavaScript" src="{#scripts_dir#}/globalFuncs.js" ></script>

 <script type="text/javascript">
 {literal}
        function validatePhone(){
        }

        function openwin(url,w,h)
{
	new_window = window.open(url,'','toolbar=no,location=no,shopping=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h,'');
}

        function selectAllPairs(systemID,checkedState){
        	var cnter=1;

           while(document.getElementById('pair_'+cnter)) {
           		cbid = document.getElementById('pair_'+cnter).getAttribute('id');
           		cbval = document.getElementById('pair_'+cnter).value;
           		cbvalArr = cbval.split('_');
           		cbsys = cbvalArr[1];
           		if (cbsys==systemID) document.getElementById('pair_'+cnter).checked = checkedState;
           		//alert();
           	  	cnter++;
           }
        }




        function submitAllForms(flagRedirect){
        	if (validateForm( document.getElementById("frm_profile"), 0, 0, 0, 0, 16) != false){


        		// check if there were whitespaces in smsaddress
                chars = document.getElementById("phonemail").value;
                char1 = chars.charAt(0);
                if( chars.charAt(0)==" " ) {
                	document.getElementById("phonemail").value=null;
                }

                var fieldCode = document.getElementById("data_pcode").value;
        		var fieldNumber = document.getElementById("data_pnumber").value;

        		if (IsNumeric(fieldCode) && IsNumeric(fieldNumber)){
        			document.getElementById("data_pcode").disabled = false;
        			document.getElementById("data_pnumber").disabled = false;
        		}


                if (flagRedirect) document.getElementById("flag_redirect").value = flagRedirect;


        		document.getElementById("frm_profile").submit();
        	}
        	//if (validateForm( document.getElementById("frm_profile"), 0, 0, 0, 1, 16)){
           		//document.getElementById("frm_profile").submit();
         	//}

           	//document.getElementById("frm_password").submit();
        }


        function submitPassForms(){
        	if (validateForm( document.getElementById("frm_password"), 0, 0, 0, 0, 16) != false){
        		document.getElementById("frm_password").submit();
        	}
        	else toTop();
        }


        function sendTestSMS(){

        	var fieldCode = document.getElementById("data_pcode").value;
        	var fieldNumber = document.getElementById("data_pnumber").value;

        	if (IsNumeric(fieldCode) && IsNumeric(fieldNumber)){
        		document.getElementById("test_sms").value = fieldCode+""+fieldNumber;
        		document.getElementById("frm_sms").submit();
        	}
        	else alert("{/literal}{#_form_profile__validSMS#}{literal}");

        }

        function checkSentSMS(){
        	if (document.getElementById("test_sms").value!=""){
        	document.getElementById("sms_status").innerHTML = "{/literal}{#_form_profile__SMSsent#}{literal}";
        	}
        }


        function toTop() {
        	self.scrollTo(0, 0)
		}

		function toDashboard() {
        	window.location.href="/{/literal}{$lang}{literal}/dashboard.html"
		}


       function enableRecommend(){
			var selObj = document.getElementById('data_broker');		
			var selIndex = selObj.selectedIndex;
			
			if (!IsNumeric(document.getElementById('data_account')) || document.getElementById('data_account').value=="" || document.getElementById('data_broker').value==0) {
				alert("{/literal}{#_form_profile__validMM#}{literal}");
				return false;
			}			
	   
			document.getElementById("data_mmRecommend").value = document.getElementById("data_account").value +"_"+ selObj.options[selIndex].text +"_{/literal}{$data->login}{literal}";
			//alert (document.getElementById("data_mmRecommend").value );
        	document.getElementById("data_mmRecommend").disabled = false;
			
			submitAllForms();
			
			return true;
        }

		function eaLots(selector, lotID) {
			var lotSelectorState;
			alert(selector.checked)
        	if (!selector.checked) lotSelectorState = 'true';
        	else lotSelectorState = 'false';
        	document.getElementById('ealot_'+lotID).disabled = lotSelectorState;
		}


		function setCustomBroker(){

	   		if (document.getElementById('data_broker').value==666) {
	   			document.getElementById('data_cbroker').disabled = false;
	           	document.getElementById('data_cbroker').style.visibility = "visible";
	   		} else {
	   			document.getElementById('data_cbroker').disabled = true;
	            document.getElementById('data_cbroker').style.visibility = "hidden";
	   		}

		 	return true;

 		}



        function disableEASettings(){
        	var i=1;
        	var mmAccount = (!IsNumeric(document.getElementById('data_account').value));

        	if(mmAccount){
        		document.getElementById('msgspec').style.display = "block";
        		//document.getElementById('msgbuild').style.display = "block";
        	} else {
              	document.getElementById('msgspec').style.display = "none";
        		//document.getElementById('msgbuild').style.display = "none";
        	}

	   		while (document.getElementById('eapair_'+i)) {
	   			document.getElementById('eapair_'+i).disabled = mmAccount;
	           	document.getElementById('ealot_'+i).disabled = mmAccount;
	   			i++;
	   		}

		 	return true;
 		}


 {/literal}
 </script>

<link href="{#styles_dir#}/form.css" rel="stylesheet" type="text/css">

    <a name="show_errors"></a><ul id="errors"></ul>
    <ul id="info">
	{if $isPOSTsms}
 		<li class="infoMsg">{#_form_profile__labelSMSsent#}</li>
 	{elseif $isPOSTPass}
 		<li class="infoMsg">{#_form_profile__labelPassUpd#}</li>
 	{elseif $isPOSTMMRecommend}
 		<li class="infoMsg">{#_form_profile__msgRecommend#}</li>
	{/if}
	</ul>





<form method="post" enctype="multipart/form-data" id="frm_profile">

<input type="button" onclick="submitAllForms(1);" value="{#_form_profile__labelSave#}{*Save*}" class="buttonMegaWide">

 <table width="100%" border="0" class="form" cellpadding="2" cellspacing="0">

{*if $menu_sub=="billing"*}
{*elseif $menu_sub=="trades"*}
{*elseif $menu_sub=="personal"*}
{*/if*}






<tr><td class="profileHeader" colspan="3" valign="bottom"><a name="subscription"></a>{#_form_profile__sectionSubscription#}</td></tr>
  <tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
  <!--   Subscription   -->

  	<tr><td align="right">
    	<label for="data_name">{#_form_profile__labelName#}{* Name: *}</label></td><td>
        <input class="input"  style="width: 150px" type="text" name="data_name" value="{$data->name}" size="20" alt="blank"  emsg="{#_form_profile__validName#}{* Name can not be blank.*}">
    </td><td>&nbsp;</td></tr>

	<tr><td width="150" align="right" valign="top">
	    <nobr>{#_form_profile__labelStatus#}</nobr>
		</td><td valign="top" colspan="2">
	    {include file="_order_status.tpl"}
	</td></tr>

	<tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
		<input type="hidden" name="flag_redirect" id="flag_redirect" value="0">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button">
	</td></tr>


{*
    </td><td>&nbsp;</td></tr>
<tr><td valign="top" align="right">
    <label for="data_systems[]">ssystems{#_form_profile__labelSystems#}</label></td><td>
        {section name=item_system loop=$systems}
         <input type="CHECKBOX" value="{$systems[item_system].value}" name="data_systems[]"
                {if $systems[item_system].flag==1 } checked {/if}>{$systems[item_system].name}</input><br>
        {/section}
    </td><td>&nbsp;</td></tr>
*}

  	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
  	<tr><td class="profileHeader" colspan="3" valign="bottom"><a name="notification"></a>{#_form_profile__sectionNotification#}</td></tr>
  	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
   	<!--   E-mail and SMS notifications   -->


   <!--
 	<tr style="display:none"><td>
    	<label for="data_name">Group: </label></td><td>
        {$Staff->UserGroup($data->login)}
    </td></tr>
    -->


    <tr><td align="right">
       	{#_form_profile__labelEmail#}{* E-Mail: *}</td><td>
        {$data->login}
    </td><td>&nbsp;</td></tr>


        <tr><td align="right">
       	<nobr>{#_form_profile__labelAdditionalEmail#}{* Additional e-mail: *}</nobr></td><td colspan="2">
        <input class="input" onchange="javascript:validatePhone();"  style="width: 150px" type="text" name="data_phonemail" id="phonemail" value="{$data->smsaddress}" size="20" alt="email|0|100|bok"  emsg="{#_form_profile__validAdditionalEmail#}{* Please enter Additional e-mail in valid format: phone_number@operator !*}">
		&nbsp;&nbsp;{#_form_profile__msgAdditionalEmail#}{* (use to specify your cell phone's e-mail address)*}</td></tr>


		<tr><td align="right">
       	<nobr>{#_form_profile__labelDirectSMS#}{* SMS: *}</nobr></td><td colspan="2">

			   <table width="100%" border="0" cellpadding="0" cellspacing="2" class="text_small">
		          <tr>
		            <td width="57" valign="bottom" style="font-size: 7pt">{#_form_profile__labelCCode#}</td>
		            <td width="135" valign="bottom" style="font-size: 7pt">{#_form_profile__labelPNumber#}</td>
		            <td valign="middle"><a href="Javascript:openwin('{#images_dir#}/format2.gif',380,100)">{#_form_profile__labelNoExample#}</a>
		            </td>
		          </tr>
		        </table>

				 <table width="100%" cellpadding="0" cellspacing="2" border="0">
				    <tr>
				      <td width="57">
				      <input type="text" name="data_pcode" id="data_pcode" value="{$data->phonecode}" size="3" class="inputStretch"
				      	{if !$Staff->checkSubscribed() && $Staff->UserGroupID()!=3}
           				disabled="disabled"
        				{/if} alt="numeric|1|bok"  emsg="{#_form_profile__validSMS#}">
				      </td>
				      <td width="135">
				      <input type="text" name="data_pnumber" id="data_pnumber" value="{$data->phonenumber}" size="16" class="inputStretch"
				      	{if !$Staff->checkSubscribed() && $Staff->UserGroupID()!=3}
          				disabled="disabled"
        				{/if} alt="numeric|4|bok"  emsg="{#_form_profile__validSMS#}">
				      </td>
				      <td>
						{if $Staff->checkSubscribed() || $Staff->UserGroupID()==3}
						 	{*#_form_profile__msgDirectSMS#*}
						 	<input type="button" value="{#_form_profile__labelTestSMS#}" onClick="sendTestSMS();" class="buttonWide">
				   		{else}
				   			{#_form_profile__msgDirectSMSDisabled#}
				        {/if}
				        <span id="sms_status"></span>
				      </td>
				    </tr>
				  </table>

        </td></tr>

            <tr><td align="right"><a name="personal"></a>

    <label for="data_messagetype"><nobr>{#_form_profile__labelMessagetype#}{* Message type: *}</nobr></label></td><td>
        <select class="selectWide" name="data_messagetype">
            <!--
            <option value="0"
             {if $select.list[item].value==$select.value } selected {/if}>--type--</option>
             -->
            <option value="1"
             {if 1==$data->messagetype } selected {/if}>{#_form_profile__typeHtmlChart#}{* HTML + Chart*}</option>
            <!--<option value="2"
             {if 2==$data->messagetype } selected {/if}>{#_form_profile__typeText#} {*text+attachment*}</option>
            <option value="3"
             {if 3==$data->messagetype } selected {/if}>{#_form_profile__typeCompactText#} {*compact text*}</option> -->
             <option value="4"
             {if 4==$data->messagetype } selected {/if}>{#_form_profile__typeHtml#}{* HTML*}</option>
        </select>
    </td></tr>
    <tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button">
	</td></tr>



	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
	<tr><td class="profileHeader" colspan="3" valign="bottom"><a name="trades"></a>{#_form_profile__sectionTrades#}</td></tr>
	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
	<!--   Trade systems and currency pairs   -->


 	<tr><td valign="top" align="right">
        <nobr>{#_form_profile__labelPairs#}{* Trade systems: *}</nobr></td><td>
        <table border="0" cellspacing="0" cellpadding="1">

        {assign var="group" value="-1"}
        {assign var="pairid" value="1"}
        {assign var="cc" value="0"}
        {assign var="first" value="1"}

        {section name=item_trade loop=$trades}
            {if $group<>$trades[item_trade].group}

            {assign var="cc" value=`$cc+1`}
                {if $cc>$systems_per_row }
                    {if !$first } </td></tr> {/if}
                    <tr></td>
                    {assign var="cc" value="0"}
                {/if}

                {if !$first}
                    {assign var="first" value="0"}
                    <tr></td>
                {/if}

            </td><td valign="top" class="systemTable">
            	<img src="{#images_dir#}/spacer.gif" height="1" width="120" /><br>
                {*if $group<>-1}<br>{/if*}
                {assign var="group" value=`$trades[item_trade].group`}
                <nobr><b>{$systems.$group.Name}</b> &nbsp;&nbsp;&nbsp;&nbsp;</nobr>

                <span style="display:none"><br>
                <nobr><a href="javascript:void(null);" onclick="javascript:selectAllPairs('{$systems.$group.SystemID}',true);">{#_form_profile__labelSelect#}</a>|<a href="javascript:void(null);" onclick="javascript:selectAllPairs('{$systems.$group.SystemID}',false);">{#_form_profile__labelDeselect#}</a>
                <span class="selectLink">{#_form_profile__labelAll#}</span></nobr></span>

                <hr width="97%" noshadow="noshadow">

            {/if}
            <nobr><input type="CHECKBOX" {if $trades[item_trade].subscribed && !$trades[item_trade].subscr_system} disabled="disabled" {else} id="pair_{$pairid++}" value="{$trades[item_trade].value}" name="data_trades[]" {/if}
                {if $trades[item_trade].flag==1 } checked {/if}>{$trades[item_trade].name}{*$trades[item_trade].group*}</input></nobr><br>
        {/section}
        </td></tr></table>


    </td><td>&nbsp;</td></tr>
    <tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button">
	</td></tr>


		<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
    <tr><td class="profileHeader" colspan="3" valign="bottom"><a name="mmanagement"></a>{#_form_profile__sectionMoney#}</td></tr>
    <tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
   	<!--   Money management   -->

   	<tr><td align="right" valign="bottom"><a name="personal"></a>

    	<label for="data_broker">{#_form_profile__labelBroker#}{* Broker: *}</label></td><td valign="top">
        <select class="selectMegaWide" name="data_broker" id="data_broker" onChange="javascript:setCustomBroker();">
        	 <option value="0">&nbsp;-- {#_form_profile__labelBrokerSelect#} --&nbsp;</option>
            {assign var="brokerFile" value="brokers__"}
            {section name=broker loop=$brokers}
            {assign var="brokerLabel" value=$brokers[broker].LabelName}
            {assign var="brokerName" value=$brokerFile$brokerLabel}
	         <option
	         {if $money.BrokerID==$brokers[broker].BrokerID}selected{/if}
	          value="{$brokers[broker].BrokerID}">{$smarty.config.$brokerName}</option>
        	{/section}
        	<option value="666" {if $money.BrokerCustom}selected{/if} >&nbsp;-- {#_form_profile__labelBrokerCustom#} --&nbsp;</option>
        </select>&nbsp;
        <input class="input"
        {if !$money.BrokerCustom}style="visibility: hidden"{/if}
         type="text" id="data_cbroker" name="data_cbroker"  value="{$money.BrokerCustom}" />
    </td></tr>

   	<tr><td align="right" valign="top">
    	<label for="data_account">{#_form_profile__labelAmount#}{* Account size: *}</label></td><td>
        <input class="input"  style="width: 150px" type="text" name="data_account" id="data_account" value="{$money.AccountSize}" size="20" alt="numeric|bok"  emsg="{#_form_profile__validAccount#}" onChange="disableEASettings();">&nbsp;USD
        &nbsp;&nbsp;<input type="button" onclick="enableRecommend();" value="{#_form_profile__labelRecommend#}" class="buttonMegaWide" style="font-size: 9pt"><input type="hidden" name="data_mmRecommend" id="data_mmRecommend" value="1" disabled="disabled" />
    </td><td>&nbsp;</td></tr>

    <tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}" class="button">
	</td></tr>


    <tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
	<tr><td class="profileHeader" colspan="3" valign="bottom"><a name="eatrades"></a>{#_form_profile__sectionexpert#}</td></tr>
	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>

	<!--  EA Trade systems and currency pairs   -->


     <tr><td width="150" align="right" valign="top"></td>
     	<td valign="top" colspan="2">
     	<div id="msgspec" class="redColor" style="padding-left:3px">{#_form_profile__labelMmspecify#}</div>
     	<div id="msgbuild" style="padding-left:3px">{#_form_profile__labelMmbuild#}</div>
     	</td></tr>
 	<tr><td valign="top" align="right">
        <nobr>{#_form_profile__labelPairs#}{* Trade systems: *}</nobr></td><td>
        <table border="0" cellspacing="0" cellpadding="1">

        {assign var="group" value="-1"}
        {assign var="pairid" value="1"}
        {assign var="lotid" value="1"}
        {assign var="cc" value="0"}
        {assign var="first" value="1"}

        {section name=item_trade loop=$eatrades}

            {if $group<>$eatrades[item_trade].group}

            {assign var="cc" value=`$cc+1`}
                {if $cc>$systems_per_row }
                    {if !$first } </td></tr> {/if}
                    <tr></td>
                    {assign var="cc" value="0"}
                {/if}

                {if !$first}
                    {assign var="first" value="0"}
                    <tr></td>
                {/if}

            </td><td valign="top" class="systemTable">
            	<img src="{#images_dir#}/spacer.gif" height="1" width="120" /><br>
                {*if $group<>-1}<br>{/if*}
                {assign var="group" value=`$eatrades[item_trade].group`}
                <nobr><b>{$systems.$group.Name}</b> &nbsp;&nbsp;&nbsp;&nbsp;</nobr>

                <hr width="95%" noshadow="noshadow">

            {/if}
            <nobr><input type="CHECKBOX" {* onclick="eaLots(this, '{$lotid}');" *}
			{if $eatrades[item_trade].subscribed && !$eatrades[item_trade].subscr_system} disabled="disabled" {else} id="eapair_{$pairid++}" value="{$eatrades[item_trade].value}" name="data_eatrades[]" {/if}
                {if $eatrades[item_trade].flag==1 } checked {/if} ><div style="width: 60px; display: inline">{$eatrades[item_trade].name}</div>
                {*
                <select id="ealot_{$lotid++}" name="data_{$eatrades[item_trade].value}" style="font-size: 11px">
                {section name=lot loop=$ealots}
                <option {if $eatrades[item_trade].lot==$ealots[lot]}selected{/if}
                 value="{$ealots[lot]}">{$ealots[lot]}</option>
                {/section}
                </select>
                *}
                <input type="text" size="3" maxlength="4" id="ealot_{$lotid++}" name="data_{$eatrades[item_trade].value}" value="{$eatrades[item_trade].lot|default:$eadefLot}"></nobr><br>
        {/section}
        </td></tr></table>


    </td><td>&nbsp;</td></tr>


    {*
<tr><td valign="top" align="right">
    <label for="data_systems[]">ssystems{#_form_profile__labelSystems#}</label></td><td>
        {section name=item_system loop=$systems}
         <input type="CHECKBOX" value="{$systems[item_system].value}" name="data_systems[]"
                {if $systems[item_system].flag==1 } checked {/if}>{$systems[item_system].name}</input>
                <br>
        {/section}
    </td><td>&nbsp;</td></tr>
*}
<tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button">
	</td></tr>


<!--
    <tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
    <tr><td class="profileHeader" colspan="3" valign="bottom"><a name="regional"></a>{#_form_profile__sectionRegional#}</td></tr>
    <tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
-->
   	<!--   Regional settings   -->

 <!--
        <tr><td align="right" valign="top"><label for="data_language">{#_form_profile__labelLanguage#}{*Language: *}</label></td><td valign="top">
    <select class="selectWide" name="data_language">
     {section name=item loop=$languages}
        <option value="{$languages[item].value}"
        {if $languages[item].value==$data->language } selected {/if}>{$languages[item].name}</option>
     {/section}
    </select>
    </td></tr>

    <tr>
		<td><div align="right"><label for="data_timezone">{#_form_register__labelTimezone#}Time Zone</label></div></td>
		<td align="left">
		<select name="data_timezone" class="selectWide" disabled="disabled">
				<option value="">+0:00 GMT</option>
		</select></td>
	</tr>


	<tr>
		<td><div align="right" valign="top"><label for="data_timezone">{#_form_profile__labelTimezone#}</label></div></td>
		<td align="left" valign="top"><select class="selectStretch" name="data_timezone" value="{$data->timezone}" disabled="disabled">
			{section name=timezone loop=$timezones}
				{if $timezones[timezone].offsetMin>=0}
					{assign var="sign" value="+"}
				{else}
					{assign var="sign" value=""}
				{/if}
				<option value="{$timezones[timezone].id}"
				{if $timezones[timezone].id==$userTimezone} selected="selected"{/if}
				>GMT{$sign}{$timezones[timezone].offsetHrs} {$timezones[timezone].descr}</option>
			{/section}
		</select></td>
	</tr>


	<tr><td width="150" align="right" valign="top">&nbsp;
		</td><td valign="top" colspan="2">
	    <input type="button" onclick="submitAllForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button">
	</td></tr>
	-->
    </form>


<form method="post" enctype="multipart/form-data" id="frm_password">
	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
	<tr><td class="profileHeader" colspan="3" valign="bottom"><a name="password"></a>{#_form_profile__sectionPassword#}</td></tr>
	<tr><td class="profileSpacer" valign="top" colspan="3">&nbsp;</td></tr>
   	<!--   Password management   -->


    <tr><td align="right">
    	{#_form_profile__labelPassword#}{* Password: *}</td><td>
        <input class="input"  style="width: 150px" type="password" name="data_password" size="20">
    </td><td>&nbsp;</td></tr>

    <tr><td align="right">
		<nobr>{#_form_profile__labelConfirmPassword#}{* Confrim password: *}</nobr></td><td>
        <input class="input"  style="width: 150px" type="password" name="tmp_pass_confirm" size="20" alt="equalto|data_password" emsg="{#_form_profile__validConfirmPassword#}{* Password does not match confirm.*}">
    </td><td>&nbsp;</td></tr>

    <tr><td align="right">&nbsp;</td><td>
    <input type="button" onclick="submitPassForms();" value="{#_form_profile__labelSave1#}{*Save*}" class="button"></td>
    </tr>
 </form>


	<tr>
	<td class="profileSpacer" width="150">&nbsp;</td>
	<td class="profileSpacer" width="150">&nbsp;</td>
	<td class="profileSpacer">&nbsp;</td>
	</tr>
	</table>

<br><input type="button" onclick="submitAllForms(1);" value="{#_form_profile__labelSave#}{*Save*}" class="buttonMegaWide">


 <form method="post" id="frm_sms">
        <input class="input"  type="hidden" name="test_sms" id="test_sms" value="{$data->phonecode}{$data->phonenumber}" size="20">
 </form>

 <script type="text/javascript">
	//checkSentSMS();
	disableEASettings();
 </script>

{*
{$Staff->timeZoneName}<br>
{$Staff->timeZoneID}<br><br>

{$Staff->getTimezoneOffset($Staff->getUserTimezone())} {$Staff->tzAbbreviation}<br>
{$Staff->getUserOffset(518)} {$Staff->tzAbbreviation}<br><br>

{$Staff->getDaylightSaving($Staff->getUserTimezone())} {$Staff->getUserTimezone(518)}<br>

 *}
